<?php 
session_start();
require_once("ini.php");

function headerPage($title="CDHidef"){
     
        $html="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
        <html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
        <head>
            <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
            <title>".$title."</title>
            <link href='css/jquery-ui-1.8.22.custom.css' rel='stylesheet' type='text/css' />
            <link href='css/jquery-ui-1.8.9.custom.css' rel='stylesheet' type='text/css' />
            <SCRIPT src='js/jquery-1.4.4.min.js'></SCRIPT> 
            <SCRIPT src='js/jquery-ui-1.8.9.custom.min.js'></SCRIPT> 
            <script src='js/jquery.mousewheel.min.js'></script>     
            <script src='js/jScrollPane.js'></script>
            <link rel='stylesheet' type='text/css' href='css/menustyle.css' />     
            <link rel='stylesheet' type='text/css' media='all' href='css/JScrollPane.css' />
            <link href='css/style2.css' rel='stylesheet' type='text/css' />
        </head>
    <body class='layout1014'>

    <div id='normal-screen'>

    </div>
    <div id='page_wrapper' >
        <div id='page-header' >
            <div id='page-header-wrapper' class='fixed' style='border:1px solid #ccc;'>
                <div id='top'>
             
                </div>
                <div class='bg'>
                    <div class='welcome'>
                        <span class='note'>Welcome, <a href='#' title='Welcome, ".$_SESSION['useradmin']."'>".$_SESSION['useradmin']."</a></span>
             
                        <a class='btn ui-state-default ui-corner-all' href='logout.php'>
                            <span class='ui-icon ui-icon-power'></span>
                            Logout
                        </a>                        
                    </div>
                    <ul id='navigation' >
                        ";
                       
                        $html.="<li><a href='main.php' class='sf-with-ul'>Home</a></li>";
                        $html.="<li><a href='_news.php' class='sf-with-ul'>news</a></li>";
                         
                           
                        $html .="
                        
                    </ul>
                </div>
            </div>
        </div>";
        echo $html;
    }
 
    function footer(){
    
        $html="<table width='1026' id='foolter_table'  align='center' cellpadding='0' cellspacing='0' style='border:1px solid #ccc;background:#ccc;'>";
        $html.="<tr valign='top' ><td width='1024px' >&nbsp;</td></tr></table></div></body></html>";
        
        return $html;
    }
    function footer2(){
        $html="<table width='1014' border='0' align='center' cellpadding='0' cellspacing='0'>
              <tr valign='top'>
                <td height='15' colspan='3'><img src='images/MainTable_border_105.jpg' width='37' height='15' /></td>
                <td width='940' height='15' background='images/MainTable_border_106.jpg'><img src='images/0.gif' width='940' height='15' /><br /></td>
                <td height='15' colspan='3'><img src='images/MainTable_border_108.jpg' width='37' height='15' /></td>
              </tr>
             <tr>
                <td width='6'>&nbsp;</td>
                <td width='21'>&nbsp;</td>
                <td width='10'>&nbsp;</td>
                <td>
                <table width='940' border='0' cellspacing='0' cellpadding='0'>
 
                      <tr>
                        <td align='right'>
                        <img src='images/ob_footer_logo.jpg'/></td>
                        <td class='BlackGray_Tahoma11'><b>&copy; Copyright 2009-201 Oriental Beauty Company Limited. All Rights Reserved</b><br />Call Center 084-777-300,02-4156036-37 ,Fax 02-415-6039</td>  
                        <td class='BlackGray_Tahoma11' align='right'><a href='terms.php'><span class='BlackGray_Tahoma11'>Point of Sale</span></a> <b>|</b> Order Product <b>|</b> <a href='#'><span class='BlackGray_Tahoma11'>Receive Product</span></a> <b>|</b> Return Product<br />
                          <br /></td>
                      </tr>
      
                </table></td>
                <td width='10'>&nbsp;</td>
                <td width='21'>&nbsp;</td>
                <td width='6'>&nbsp;</td>
              </tr>
            </table>
             </div>
             </body>";
 $html.="</html>";
return $html;
    }
?>